<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./img/asset-favicon.ico">
    <title>社交-问答详情</title>

    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->

    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-detail.css"/>

    <script type="text/javascript" src="js/host.js"></script>
    <script type="text/javascript" src="js/vue-2.5.16.js"></script>
    <script type="text/javascript" src="js/axios-0.18.0.min.js"></script>
    <script type="text/javascript" src="js/qa_filter.js"></script>
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>

    <script></script>
</head>

<body>
<div class="wrapper">
    <!--引用组件-->
    <!--头部导航-->
    <header>
        <div class="sui-navbar">
            <div class="navbar-inner">
                <a href="index-logined.html" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交"/></a>
                <ul class="sui-nav">
                    <li class="active"><a href="./headline-logined.html">头条</a></li>
                    <li><a href="./qa-logined.html">问答</a></li>
                    <li><a href="./activity-index.html">活动</a></li>
                    <li><a href="./makeFriends-index.html">交友</a></li>
                    <li><a href="./spit-index.html">吐槽</a></li>
                    <li><a href="./recruit-index.html">招聘</a></li>
                </ul>
                <form class="sui-form sui-form pull-left">
                    <input type="text" placeholder="输入关键词...">
                    <span class="btn-search fa fa-search"></span>
                </form>
                <div class="sui-nav pull-right info">
                    <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
                    <li class="hover">
                        <span class="fa fa-plus "></span>
                        <ul class="hoverinfo">
                            <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a
                                    href="./headline-submit.html">去分享</a></li>
                            <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html"
                                                                                            target="_blank">提问题</a></li>
                            <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html"
                                                                                    target="_blank">去吐槽</a></li>
                            <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a href="./makeFriends-submit.html"
                                                                                      target="_blank">发约会</a></li>
                        </ul>
                    </li>
                    <li><a href="./person-homepage.html" target="_blank" class="homego"><img
                            src="./img/widget-photo.png" alt="用户头像"></a></li>
                </div>
            </div>
        </div>

    </header>


</div>
<div class="tab-nav ">
    <div class="wrapper">
        <ul class="fl sui-nav nav-tabs navbar-dark">
            <li class="active"><a href="#index" data-toggle="tab">首页</a></li>
            <li><a href="#php" data-toggle="tab">Php</a></li>
            <li><a href="#js" data-toggle="tab">Javascript </a></li>
            <li><a href="#python" data-toggle="tab">Python</a></li>
            <li><a href="#java" data-toggle="tab">Java</a></li>
        </ul>
        <span class="fr more"><a href="./qa-allTag.html" target="_blank">更多</a></span>
        <div class="clearfix"></div>
    </div>

</div>
<!--两列布局-->
<div class="wrapper qa-content" id="app">

    <div class="qa-title">
        <div class="fl title">
            <h2>{{title}}</h2>
            <p>
                <span class="tag" v-for="tag in tags">{{tag.name}}</span>
                <span class="author">{{question_author.username}}</span>
                <!--<span>2小时前提问 · 30分钟前更新</span>-->
                <span v-if="create_time == update_time">{{create_time | formatDate}}提问</span>
                <span v-else>{{create_time | formatDate}}提问 . {{update_time | formatDate}}更新</span>
                <!--<span>{{update_time | formatDate}}更新</span>-->
            </p>
        </div>
        <div class="fr share">
            <h4>分享到：</h4>
            <ul class="share-go">
                <li><img src="./img/widget-weibo.png" alt=""></li>
                <li><img src="./img/widget-weixin.png" alt=""></li>
                <!--0-->
            </ul>

        </div>
        <div class="clearfix"></div>
    </div>
    <div class="fl left-list">
        <div class="problem-detail">
            <div class="title-intro">
                <div class="sidebar">

                    <button @click='userful_add' type="button" class="like" data-placement="right" data-toggle="tooltip"
                            title="问题对人有帮助，内容完整，我也想知道答案"><i class="fa fa-caret-up" aria-hidden="true"></i></button>
                    <span class="count">{{count}}</span>
                    <button @click="userful_reduce" type="button" class="hate" data-placement="right"
                            data-toggle="tooltip" title="问题没有实际价值，缺少关键内容，没有改进余地"><i class="fa fa-caret-down"
                                                                                    aria-hidden="true"></i></button>

                </div>
                <div class="title">
                    <div class="detail" v-html="detail">
                        <!--{{detail}}-->
                    </div>
                    <div class="clearfix"></div>
                    <div class="operate">
                        <span class="time">{{create_time | formatDate}}提问</span>
                        <span class="comment" @click="pinglun">回答</span>
                        <span class="edit" v-if="question_author.id == user_id" @click="bianji">编辑</span>
                        <span class="jubao">举报</span>
                    </div>
                    <div class="comment-box1" v-show="question_comment">
                        <form class="comment-form" @submit.prevent="answer ">
                            <textarea placeholder="请在此处撰写回答" v-model="adetail"></textarea>
                            <button type="submit" class="sui-btn submit-comment"  >提交回答
                            </button>
                        </form>
                        <div class="tips">
                            <p>回答支持部分 Markdown 语法：**bold**_italic_[link](http://example.com)> 引用`code`- 列表。</p>
                        </div>
                    </div>
                    <div class="comment-box1" v-show="question_edit">
                        <form class="comment-form" @submit.prevent="question_change ">
                            <textarea placeholder="请在此处编辑问题" v-model="equestion"></textarea>
                            <button type="submit" class="sui-btn submit-comment"  >提交更改
                            </button>
                        </form>
                        <div class="tips">
                            <p>回答支持部分 Markdown 语法：**bold**_italic_[link](http://example.com)> 引用`code`- 列表。</p>
                        </div>
                    </div>

                    <div style="width:80px;margin:50px  auto 0" v-if="is_click">
                        <button class="sui-btn btn-danger" @click="change_focus">取消关注</button>
                    </div>
                    <div style="width:66px;margin:50px  auto 0" v-else>
                        <button class="sui-btn btn-danger btn-cancel btn-bordered" @click="change_focus">加关注</button>
                    </div>

                </div>

            </div>
            <div class="answer-intro">
                <h4 class="answer-num">{{comment_num}}个回答</h4>
                <div v-for="answer in answers">

                    <div class="sidebar">
                        <button type="button" @click="answeruse_add(answer.id)" class="like" data-placement="right"
                                data-toggle="tooltip" title="问题对人有帮助，内容完整，我也想知道答案"><i class="fa fa-caret-up"
                                                                                      aria-hidden="true"></i></button>
                        <span class="count">{{answer.count}}</span>
                        <button type="button" @click="answeruse_reduce(answer.id)" class="hate" data-placement="right"
                                data-toggle="tooltip" title="问题没有实际价值，缺少关键内容，没有改进余地"><i class="fa fa-caret-down"
                                                                                        aria-hidden="true"></i></button>
                    </div>
                    <div class="title">
                        <!--<p>不需要分开传的 你看到的是由于你使用了 new FormData()</p>-->
                        <p>{{answer.detail}}</p>
                        <div class="operate">
                            <div class="tool pull-left">
                                <span class="time">{{answer.update_time | formatDate}}</span>
                                <span class="comment" v-if="answer.sub_comment_num">评论({{answer.sub_comment_num}})</span>
                                <span class="comment" v-else>评论(0)</span>
                                <span class="edit" v-if="answer.author.id == user_id" @click="answer_change(answer.author.id)">编辑</span>
                                <span class="jubao">举报</span>
                            </div>

                            <div class="myanswer pull-right">
                                <img src="./img/widget-photo.jpg" alt=""> <a href="#">{{answer.author.username}}</a>
                            </div>
                            <div v-for="sub in answer.subs.reverse()">
                                 <div class="title">
                                     <br>
                                    <p><span style="color: blue">{{sub.author.username}}</span>回答 &nbsp;&nbsp;&nbsp;<span style="color: blue">{{answer.author.username}}
                                    <p>{{answer.detail}}</p>
                                    <div class="operate">
                                    <div class="tool pull-left">
                                            <span class="time">{{sub.update_time | formatDate}}</span>
                                            <span class="comment">评论</span>
                                            <span class="edit" v-if="sub.author.id == user_id" >编辑</span>
                                         <span class="jubao">举报</span>
                                 </div>

                            <div class="myanswer pull-right">
                                <img src="./img/widget-photo.jpg" alt=""> <a href="#">{{sub.author.username}}</a>
                            </div>
                            </div>
                        </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="edit-answer">
                <h4>撰写答案</h4>
                <div class="edit-tip">
                    <h4>你正在撰写答案</h4>
                    <p>如果你是要对问题或其他回答进行点评或询问，请使用“评论”功能。</p>
                </div>
            </div>
        </div>
        <!-- <script>
            $(function () {
                $(".comment").click(function () {
                    $(this).parents(".operate").siblings(".comment-box").toggle();
                });
                $(".sidebar .fa").hover(function () {
                    $(this).css("color", "#e64620");
                }, function () {
                    $(this).css("color", "#000");
                })
            })

        </script> -->
    </div>

    <div class="clearfix"></div>
</div>
    <div class="fl right-tag">
        <div class="similar-problem">
            <h3 class="title">相似问题</h3>
            <ul class="problem-list">
                <li class="list-item">
                    <p class="list-title">求一份浏览器中html css javascript jquery ajax的渲染顺序与原理！！</p>
                    <p class="list-info"><a href="">1 回答</a> | 已解决</p>
                </li>
                <li class="list-item">
                    <p class="list-title">求一份浏览器中html css javascript jquery ajax的渲染顺序与原理！！</p>
                    <p class="list-info"><a href="">1 回答</a> | 已解决</p>
                </li>
                <li class="list-item">
                    <p class="list-title">求一份浏览器中html css javascript jquery ajax的渲染顺序与原理！！</p>
                    <p class="list-info"><a href="">1 回答</a> | 已解决</p>
                </li>
                <li class="list-item">
                    <p class="list-title">求一份浏览器中html css javascript jquery ajax的渲染顺序与原理！！</p>
                    <p class="list-info"><a href="">1 回答</a> | 已解决</p>
                </li>
            </ul>
        </div>
    </div>


<div class="footer">
    <div class="wrapper">
        <div class="footer-bottom">
            <div class="link">
                <dl>
                    <dt>网站相关</dt>
                    <dd>关于我们</dd>
                    <dd>服务条款</dd>
                    <dd>帮助中心</dd>
                    <dd>编辑器语法</dd>
                </dl>
                <dl>
                    <dt>常用链接</dt>
                    <dd>传智播客</dd>
                    <dd>传智论坛</dd>
                </dl>
                <dl>
                    <dt>联系我们</dt>
                    <dd>联系我们</dd>
                    <dd>加入我们</dd>
                    <dd>建议反馈</dd>
                </dl>
                <dl>
                    <dt>关注我们</dt>
                    <dd>微博</dd>
                    <dd>twitter</dd>
                </dl>

                <div class="xuke">
                    <h3>内容许可</h3>
                    <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
                    <p>本站由 传智研究院 提供更新服务</p>
                </div>
            </div>


            <p class="Copyright">Copyright © 2017 传智问答社区 当前版本 0.0.1</p>

        </div>
    </div>

</div>


<script type="text/javascript" src="js/qadetail.js"></script>
</body>